package com.example.sls.service.impl.logistics;

import com.example.sls.pojo.logistics.AnnouncementHistory;
import com.example.sls.dao.logistics.AnnouncementHistoryDao;
import com.example.sls.service.intserfaces.logistics.AnnouncementHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 公告历史记录表(AnnouncementHistory)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:07
 */
@Service
public class AnnouncementHistoryServiceImpl implements AnnouncementHistoryService {
  @Autowired
  AnnouncementHistoryDao announcementHistoryDao;

  @Override
  public AnnouncementHistory queryById(Integer id) {
    return announcementHistoryDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return announcementHistoryDao.deleteById(id);
  }

  @Override
  public int update(AnnouncementHistory announcementHistory) {
    return announcementHistoryDao.update(announcementHistory);
  }

  @Override
  public int insert(AnnouncementHistory announcementHistory) {
    return announcementHistoryDao.insert(announcementHistory);
  }

  @Override
  public long count() {
    return announcementHistoryDao.count();
  }

  @Override
  public List<AnnouncementHistory> queryAllByLimit(AnnouncementHistory announcementHistory, Integer pageSize, Integer offset) {
    return announcementHistoryDao.queryAllByLimit(announcementHistory, pageSize, offset);
  }
}
